package com.zz.parkingsystem.mapper;

import com.zz.parkingsystem.dto.UserDTO;
import com.zz.parkingsystem.dto.UserFeedbackDTO;
import com.zz.parkingsystem.entity.User;
import com.zz.parkingsystem.vo.AllUserVO;
import com.zz.parkingsystem.vo.BaseUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import com.zz.parkingsystem.vo.UserFeedbackVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
* @author zz
* @description 针对表【t_user(用户表)】的数据库操作Mapper
* @createDate 2022-08-30 16:38:38
* @Entity com.zz.parkingsystem.entity.User
*/
@Repository
@Mapper
public interface UserMapper {
    BaseUserVO getUserBaseMes(Long id);

    Long getCount(UserDTO userDto);
    List<AllUserVO> getAllUserExcel(UserDTO userDto);
    List<AllUserVO> getAllUsers(UserDTO userDto);
    int  getUnpayOrder(Long orderStatus);

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateUserStatus(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selByTel(String userTel);

    //用户增长数量按当日时间查
    int  selCountNumber(Date user_created_time);
}
